﻿using SqlSugar;
using YNTK.Common.Const;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 供应商评价
    /// </summary>
    [SugarTable("eims_supplier_evaluates")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class SupplierEvaluateEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", ColumnDescription = "id")]
        public string Id { get; set; }

        /// <summary>
        /// 供应商id
        /// </summary>
        [SugarColumn(ColumnName = "F_SupplierId", ColumnDescription = "供应商id")]
        public string SupplierId { get; set; }

        /// <summary>
        /// 评价时间
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorTime", ColumnDescription = "评价时间")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 评价用户
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorUserId", ColumnDescription = "评价用户")]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 评价用户所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "评价用户所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 评价用户所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "评价用户所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 评价类型(0.好评 1.中评 2.差评)
        /// </summary>
        [SugarColumn(ColumnName = "F_Type", ColumnDescription = "评价类型(0.好评 1.中评 2.差评)")]
        public int Type { get; set; }

        /// <summary>
        /// 评价内容
        /// </summary>
        [SugarColumn(ColumnName = "F_Description", ColumnDescription = "评价内容")]
        public string Description { get; set; }
    }
}
